{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "ans=[]\n",
    "ansList=open(\"../OSanswer.txt\",encoding=\"utf-8\")\n",
    "\n",
    "for j in ansList:\n",
    "    if j !='\\n':\n",
    "        if  j.isdigit():\n",
    "            ans.append('\\n')\n",
    "            for i in j:\n",
    "\n",
    "        ans.append(j)\n",
    "\n",
    "ansList.close()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "outputs": [],
   "source": [
    "f=open(\"../OSanswer00.txt\",'a',encoding=\"utf-8\")\n",
    "f.write(''.join(ans))\n",
    "f.close()\n"
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   }
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}